package engine;

public class SearchEngine {

    private String corpusPath;
    private Corpus trainCorpus;//corpus d'entrainement
    private WeightsCalculator weightsCalculator;
    private SimilarityCalculator similarityCalculator;

    public SearchEngine(String corpusPath) {
        this.corpusPath = corpusPath;
        this.trainCorpus = new Corpus(corpusPath);
    }

    public WeightsCalculator getWeightsCalculator() {
        return weightsCalculator;
    }

    public void setWeightsCalculator(WeightsCalculator weightsCalculator) {
        this.weightsCalculator = weightsCalculator;
    }

    public SimilarityCalculator getSimilarityCalculator() {
        return similarityCalculator;
    }

    public void setSimilarityCalculator(SimilarityCalculator similarityCalculator) {
        this.similarityCalculator = similarityCalculator;
    }

    public String getCorpusPath() {
        return corpusPath;
    }

    public Corpus getTrainCorpus() {
        return trainCorpus;
    }
}
